package com.itheima.homework.Object类;

public class Phone {
    private String bread;
    private String color;
    private double price;

    public String getBread() {
        return bread;
    }

    public void setBread(String bread) {
        this.bread = bread;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Phone(String bread, String color, double price) {

        this.bread = bread;
        this.color = color;
        this.price = price;
    }

    public Phone() {

    }

    @Override
    public String toString() {
        return "Phone{" +
                "bread='" + bread + '\'' +
                ", color='" + color + '\'' +
                ", price=" + price +
                '}';
    }
}
